package com.cltech.controller.sys;

import com.cltech.frame.result.ResponseBean;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/9/9.
 */
@RestController
public class WebController {
    @RequestMapping(path = "/401")
    @ResponseStatus(HttpStatus.UNAUTHORIZED)
    public ResponseBean unauthorized() {
        return ResponseBean.error(401,"授权失败或授权过期");
    }
}

